(function() {
	var b = window, a = document, c = "QFL", e = function(f) {
		return a.getElementById(f)
	}, d = function(g, f) {
		b[c][g] = f
	};
	b[c] = {};
	d("Dom", {
				$ : e,
				getElementsByClassName : (function() {
					return document.getElementsByClassName ? function(g, f) {
						return g.getElementsByClassName(f)
					} : function(n, x) {
						var p = x.split(" "), w = [], f = n.all ? n.all : n
								.getElementsByTagName("*"), u, r = [], t;
						for (var q = 0, g = p.length; q < g; q += 1) {
							w.push(new RegExp("(^|\\s)" + p[q] + "(\\s|$)"))
						}
						for (var o = 0, v = f.length; o < v; o += 1) {
							u = f[o];
							t = false;
							for (var h = 0, s = w.length; h < s; h += 1) {
								t = w[h].test(u.className);
								if (!t) {
									break
								}
							}
							if (t) {
								r.push(u)
							}
						}
						return r
					}
				}())
			});
	d("Event", {
				on : function() {
					if (b.addEventListener) {
						return function(k, h, g, f) {
							k = typeof k == "string" ? e(k) : k;
							k.addEventListener(h, g, (!!f))
						}
					} else {
						if (b.attachEvent) {
							return function(h, g, f) {
								h = typeof h == "string" ? e(h) : h;
								h.attachEvent("on" + g, f)
							}
						} else {
							return function() {
							}
						}
					}
				}(),
				off : function() {
					if (b.removeEventListener) {
						return function(k, h, g, f) {
							k = typeof k == "string" ? e(k) : k;
							k.removeEventListener(h, g, !!f)
						}
					} else {
						if (b.detachEvent) {
							return function(h, g, f) {
								h = typeof h == "string" ? e(h) : h;
								h.detachEvent("on" + g, f)
							}
						} else {
							return function() {
							}
						}
					}
				}()
			})
}());
var $ = function(a) {
	return (typeof a == "object") ? a : document.getElementById(a)
};
var UrlParser = function(a) {
	this.__construct(a)
};
UrlParser.prototype = {
	__construct : function(a) {
		this._href = a || document.location.href
	},
	getParam : function(a) {
		if (this._href.match(new RegExp("(&|\\u003F)" + a + "=([^&]*)(&|$)"))) {
			return RegExp.$2
		} else {
			if (arguments.length > 1) {
				return arguments[1]
			} else {
				return null
			}
		}
	}
};
var Browser = new Object();
Browser.ua = window.navigator.userAgent.toLowerCase();
Browser.ie = /msie/.test(Browser.ua);
var $N = function(a) {
	return (typeof a == "object") ? a : document.getElementsByName(a)
};
String.prototype.trim = function() {
	return this.replace(/^\s*|\s*$/ig, "")
};
var Element = {
	remove : function() {
		for (var a = 0; a < arguments.length; a++) {
			try {
				$(arguments[a]).parentNode.removeChild($(arguments[a]))
			} catch (b) {
			}
		}
	}
};
var JsLoader = {
	load : function(a, c, e) {
		var d = new Object();
		if (typeof e == "function") {
			d.onSuccess = e
		} else {
			d = e
		}
		d.decay = d.decay || 1;
		d.delay = d.delay || 1000;
		d.count = d.count || 0;
		if (d.timer) {
			window.clearTimeout(d.timer)
		}
		Element.remove(a);
		var b = document.createElement("script");
		b.setAttribute("id", a);
		b.setAttribute("type", "text/javascript");
		b.setAttribute("src", c);
		d.timer = window.setTimeout(function() {
					if ($(a)) {
						if (--d.decay > 0) {
							d.count++;
							JsLoader.load(a, c, d)
						} else {
							if (typeof d.onFailure == "function") {
								d.onFailure()
							}
						}
					}
				}, d.delay);
		if (Browser.ie) {
			b.onreadystatechange = function() {
				if (this.readyState == "loaded"
						|| this.readyState == "complete") {
					window.clearTimeout(d.timer);
					if (typeof d.isSuccess == "function") {
						if (!d.isSuccess()) {
							if (--d.decay > 0) {
								d.count++;
								JsLoader.load(a, c, d)
							} else {
								if (typeof d.onFailure == "function") {
									d.onFailure()
								}
							}
							return
						}
					}
					if (typeof d.onSuccess == "function") {
						d.onSuccess()
					}
					b.onreadystatechange = null;
					Element.remove(b)
				}
			}
		} else {
			b.onload = function() {
				window.clearTimeout(d.timer);
				if (typeof d.isSuccess == "function") {
					if (!d.isSuccess()) {
						if (--d.decay > 0) {
							d.count++;
							JsLoader.load(a, c, d)
						} else {
							if (typeof d.onFailure == "function") {
								d.onFailure()
							}
						}
						return
					}
				}
				if (typeof d.onSuccess == "function") {
					d.onSuccess()
				}
				b.onload = null;
				Element.remove(b)
			}
		}
		document.getElementsByTagName("head")[0].appendChild(b)
	}
};
String.prototype.FS = function(a) {
	if (this.length <= a) {
		return this
	}
	var e = this.replace(/\s/g, "");
	var c = 0;
	for (var b = 0; b < e.length; b++) {
		var d = e.charCodeAt(b);
		if (d >= 913 && d <= 65509) {
			c += 1
		} else {
			c += 2 / 3
		}
		if (c > a) {
			return e.substr(0, b) + ".."
		}
	}
	return e
};
var Calendar = new Object();
Calendar.year = new Object();
Calendar.month = new Object();
Calendar.sID = null;
Calendar.sTarget = null;
Calendar.clientX = 0;
Calendar.clientY = 0;
Calendar.Bind = function(a) {
	if (typeof a == "undefined" || a == null) {
		return
	}
	Calendar.sTarget = a;
	if (a.addEventListener) {
		a.addEventListener("click", Calendar.Init, false);
		a.addEventListener("keydown", Calendar.Init, false)
	} else {
		if (a.attachEvent) {
			a.attachEvent("onclick", Calendar.Init);
			a.attachEvent("onkeydown", Calendar.Init)
		} else {
			a.onclick = Calendar.Init;
			a.onkeydown = Calendar.Init
		}
	}
};
Calendar.Init = function(a) {
	if (Calendar.sID == null) {
		alert("try Calendar.Create(id) first");
		return
	}
	var b = document.getElementById(Calendar.sID);
	if (typeof b == "undefined" || b == null) {
		alert("Calendar not found");
		return
	}
	Calendar.Show(1)
};
Calendar.Create = function(a) {
	var b = document.getElementById(a);
	if (typeof b != "undefined" && b != null) {
		return
	}
	Calendar.sID = a;
	Calendar.year = new Date().getFullYear();
	Calendar.month = new Date().getMonth();
	document.write("<div id='" + a
			+ "' style=display:none;position:absolute;z-index:1000;>");
	document
			.write("<table id=tbl0 bgcolor=#336699 border=0 cellpadding=1 cellspacing=0><tr><td><table width=100% border=0 cellpadding=2 cellspacing=1 bgcolor=white><tr bgcolor=#ebf2fb><td width=16 id=prev_year title='\u5411\u524d\u4e00\u5e74'><a id=prev_year href='#' onmouseup='Calendar.PrevYear();'><img src=http://mat1.gtimg.com/finance/stock_hq/jzzx/prev.gif border=0 width=16 height=16></a></td><td width=16 id=prev title='\u5411\u524d\u4e00\u6708'><a href='#' onmouseup='Calendar.PrevMonth();'><img src=http://mat1.gtimg.com/finance/stock_hq/jzzx/prev.gif border=0 width=16 height=16></a></td><td width=99% id="
					+ a
					+ "_t style=font-size:11;color:black;text-align:center></td><td width=16 id=next title='\u5411\u540e\u4e00\u6708'><a href='#' onmouseup='Calendar.NextMonth();'><img src=http://mat1.gtimg.com/finance/stock_hq/jzzx/next.gif border=0 width=16 height=16></a></td><td width=16 id=next_year title='\u5411\u540e\u4e00\u5e74'><a href='#' onmouseup='Calendar.NextYear();' ><img src=http://mat1.gtimg.com/finance/stock_hq/jzzx/next.gif border=0 width=16 height=16></a></td></tr></table><table width=142 border=0 bgcolor=white cellpadding=0 cellspacing=2><tr height=18><td width=18><font color=red>\u65e5</font></td><td width=18>\u4e00</td><td width=18>\u4e8c</td><td width=18>\u4e09</td><td width=18>\u56db</td><td width=18>\u4e94</td><td width=18><font color=green>\u516d</font></td></tr><tr height=1><td colspan=7 bgcolor=gray></td></tr><tr height=140px><td colspan=7><div id='"
					+ a + "_'>");
	document
			.write("<div></td></tr><tr height=1><td colspan=7 bgcolor=gray></td></tr><tr height=18 ><td colspan=7 align=center><a href='#' onclick='javascript:Calendar.Close()'>\u5173\u95ed</font></a></td></tr></table></td></tr></table></div>");
	Calendar.Draw()
};
Calendar.Close = function() {
	var a = document.getElementById(Calendar.sID);
	if (typeof a == "undefined" || a == null) {
		return
	}
	a.style.display = "none"
};
Calendar.PrevYear = function() {
	Calendar.year -= 1;
	Calendar.Draw()
};
Calendar.PrevMonth = function() {
	Calendar.month -= 1;
	Calendar.Draw()
};
Calendar.NextYear = function() {
	Calendar.year += 1;
	Calendar.Draw()
};
Calendar.NextMonth = function() {
	Calendar.month += 1;
	Calendar.Draw()
};
Calendar.Draw = function() {
	var a = new Date(Calendar.year, Calendar.month, 1, 0, 0, 0, 0);
	var b = document.getElementById(Calendar.sID + "_t");
	if (typeof b == "undefined" || b == null) {
		return
	}
	var f = a.getFullYear();
	var l = a.getMonth() + 1;
	if (l < 10) {
		l = "0" + l
	}
	b.innerHTML = f + "." + l;
	var c = document.getElementById(Calendar.sID + "_");
	if (typeof c == "undefined" || c == null) {
		return
	}
	var k = a.getDay();
	var g = (new Date(Calendar.year, Calendar.month + 1, 1, 0, 0, 0, 0) - a)
			/ (1000 * 60 * 60 * 24) + k;
	var e = "<table width=100%>";
	var h = (a.getFullYear() - new Date().getFullYear()) * 12
			+ (a.getMonth() - new Date().getMonth());
	var d = new Date().getDate();
	for (i = 0; i < 6; i++) {
		e += "<tr height=18px>";
		for (j = 0; j < 7; j++) {
			e += "<td style=line-height:18px;>";
			if ((i * 7 + j) >= k && (i * 7 + j) < g) {
				if ((h * 31 + (i * 7 + 1 + j - k) - d) == 0) {
					e += "<a style=color:red; href='javascript:Calendar.Click("
							+ (i * 7 + 1 + j - k) + ")'>" + (i * 7 + 1 + j - k)
							+ "</a>"
				} else {
					e += "<a href='javascript:Calendar.Click("
							+ (i * 7 + 1 + j - k) + ")'>" + (i * 7 + 1 + j - k)
							+ "</a>"
				}
			}
			e += "</td>"
		}
		e += "</tr>"
	}
	e += "</table>";
	c.innerHTML = e
};
Calendar.Click = function(b) {
	var e = new Date(Calendar.year, Calendar.month, b, 0, 0, 0, 0);
	var a = e.getFullYear();
	var c = e.getMonth() + 1;
	if (c < 10) {
		c = "0" + c
	}
	var d = e.getDate();
	if (d < 10) {
		d = "0" + d
	}
	Calendar.Show(0);
	Calendar.Callback(String(a) + String(c) + String(d))
};
Calendar.Callback = function(a) {
	try {
		var c = Calendar.sTarget;
		if (typeof c == "undefined" || c == null) {
			return
		}
		if (c.value) {
			c.value = a
		}
	} catch (b) {
	}
};
Calendar.Hide = function(a) {
	var g = ((a) ? (a) : (window.event));
	var c = new Number(document.getElementById(Calendar.sID).style.left
			.replace("px", ""));
	var b = c + document.getElementById(Calendar.sID).clientWidth;
	var f = new Number(document.getElementById(Calendar.sID).style.top.replace(
			"px", ""));
	var d = f + document.getElementById(Calendar.sID).clientHeight;
	if (g.clientX < c || g.clientX > b || g.clientY < f || g.clientY > d) {
		Calendar.Show(0)
	}
	if (document.all) {
		if (g.srcElement.id == Calendar.sTarget.id) {
			Calendar.Show(1)
		}
	} else {
		if (g.target.id == Calendar.sTarget.id) {
			Calendar.Show(1)
		}
	}
};
Calendar.Show = function(a) {
	var b = document.getElementById(Calendar.sID);
	if (typeof b == "undefined" || b == null) {
		return
	}
	if (a == 0) {
		if (b.style.display == "none") {
			return
		}
		b.style.display = "none";
		QFL.Event.off(document, "click", Calendar.Hide)
	} else {
		if (b.style.display == "display") {
			return
		}
		var c = Calendar.sTarget;
		if (typeof c == "undefined" || c == null) {
			return
		}
		b.style.left = getPostion(c, "offsetLeft") + "px";
		b.style.top = (getPostion(c, "offsetTop") + c.offsetHeight + 1) + "px";
		b.style.display = "block";
		QFL.Event.on(document, "click", function(d) {
					Calendar.Hide(d)
				})
	}
};
function getPostion(b, a) {
	var c = 0;
	while (b.offsetParent != null) {
		c += b[a];
		b = b.offsetParent
	}
	return c
}
function tabs_z(f, e, g, b, a) {
	var d = document.getElementById(f).getElementsByTagName(b);
	var c = document.getElementById(e).getElementsByTagName(a);
	for (i = 0; i < d.length; i++) {
		d[i].className = i == g ? "on" : "off"
	}
	for (i = 0; i < c.length; i++) {
		if (c[i].id.match(/panel-(\d+)/ig)) {
			c[i].className = RegExp.$1 == g ? "dis" : "undis"
		}
	}
}
var TYPE = 0, SORT = 0, ORDER = 0, DATA = null, MAP = ["kfs", "gpx", "hhx",
		"zqx", "hbx", "bbx", "lofetf", "qdii", "cxx", "fbs"], 
		DATE = "", pattern = /^(\+|-)?(([\d]+\.?)|([\d]*\.[\d]+))(e[\d]+)?(%)?$/ig;
function SortFunc(e, d) {
	var c = parseFloat(e[SORT]), f = parseFloat(d[SORT]);
	if (!isNaN(c) && !isNaN(f) && e[SORT] == c && d[SORT] == f) {
		return ORDER == 0 ? c - f : f - c
	}
	if (e[SORT] > d[SORT]) {
		if (ORDER == 0) {
			return 1
		} else {
			return -1
		}
	} else {
		if (e[SORT] < d[SORT]) {
			if (ORDER == 0) {
				return -1
			} else {
				return 1
			}
		} else {
			return 0
		}
	}
}
function SortData() {
	if (DATA && DATA.length > 0) {
		if (SORT < 0 || SORT > DATA[0].length) {
			SORT = 0
		}
		if (ORDER < 0 || ORDER > 1) {
			ORDER = 0
		}
		DATA.sort(SortFunc);
		return true
	}
	return false
}
function ShowData() {
	if (SortData()) {
		var e = QFL.Dom.getElementsByClassName(QFL.Dom.$("fod1list"), "dis"), l = [
				"\u2191", "\u2193"];
		if (e && e.length > 0) {
			var f = e[0].getElementsByTagName("span");
			for (var d = 0; d < f.length; d++) {
				var k = f[d].innerHTML.replace(/(\u2191|\u2193)/g, "");
				if (f[d].id == "sort-" + SORT) {
					f[d].innerHTML = k + l[ORDER]
				} else {
					f[d].innerHTML = k
				}
			}
		}
		var g = QFL.Dom.$("data-" + TYPE), d, a, h, k, b = ['<table width="958" border="0" cellspacing="0" cellpadding="0" class="alltable">'];
		for (d = 0; d < DATA.length; d++) {
			b[b.length] = d % 2 ? '<tr class="bc">' : "<tr>";
			a = DATA[d];
			if ("kfs gpx hhx zqx bbx cxx qdii".indexOf(MAP[TYPE]) >= 0) {
				h = "color-black";
				k = "";
				if (a[3] > 0) {
					h = "color-red";
					k = "+"
				} else {
					if (a[3] < 0) {
						h = "color-green"
					}
				}
				b[b.length] = [
						'<th class="num">',
						(d + 1),
						"</th>",
						'<th width="78" class="color-blue"><a target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
						a[0],
						'.htm">',
						a[0],
						"</a></th>",
						'<td width="128" class="color-blue"><a title="',
						a[1],
						'" target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
						a[0],
						'.htm"><nobr>',
						a[1].FS(8),
						"</nobr></a></td>",
						'<th width="122">',
						a[2],
						"</th>",
						'<th width="97" class="',
						h,
						'">',
						k,
						a[3],
						"</th>",
						'<th width="114" class="',
						h,
						'">',
						k,
						a[4],
						(a[4] == "--" ? "" : "%"),
						"</th>",
						'<th width="80">',
						a[5],
						"</th>",
						'<th width="114">',
						a[6],
						"</th>",
						'<td width="99">',
						a[7],
						" ",
						a[8],
						"</td>",
						'<td width="61" class="color-blue"><a href="http://stock.finance.qq.com/fund/jjzlk/jjxsjg.htm?zqdm=',
						a[0], '" target="_blank">\u67e5\u8be2</a></td>']
						.join("")
			} else {
				if ("hbx".indexOf(MAP[TYPE]) >= 0) {
					h = "color-black";
					k = "";
					if (a[3] > 0) {
						h = "color-red";
						k = "+"
					} else {
						if (a[3] < 0) {
							h = "color-green"
						}
					}
					b[b.length] = [
							'<th class="num">',
							(d + 1),
							"</th>",
							'<th width="78" class="color-blue"><a target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
							a[0],
							'.htm">',
							a[0],
							"</a></th>",
							'<td width="128" class="color-blue"><a title="',
							a[1],
							'" target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
							a[0],
							'.htm"><nobr>',
							a[1].FS(10),
							"</nobr></a></td>",
							'<th width="97">',
							a[2],
							"</th>",
							'<th width="132" class="',
							h,
							'">',
							k,
							a[3],
							(a[3] == "--" ? "" : "%"),
							"</th>",
							'<td width="92">',
							a[4],
							"</td>",
							'<th width="60">',
							a[5],
							"</th>",
							'<th width="81">',
							a[6],
							"</th>",
							'<td width="94">',
							a[7],
							" ",
							a[8],
							"</td>",
							'<td width="70">',
							a[9],
							"</td>",
							'<td width="61" class="color-blue"><a href="http://stock.finance.qq.com/fund/jjzlk/jjxsjg.htm?zqdm=',
							a[0], '" target="_blank">\u67e5\u8be2</a</td>']
							.join("")
				} else {
					if ("lofetf".indexOf(MAP[TYPE]) >= 0) {
						h = "color-black";
						k = "";
						if (a[3] > 0) {
							h = "color-red";
							k = "+"
						} else {
							if (a[3] < 0) {
								h = "color-green"
							}
						}
						b[b.length] = [
								'<th class="num">',
								(d + 1),
								"</th>",
								'<th width="78" class="color-blue"><a target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
								a[0],
								'.htm">',
								a[0],
								"</a></th>",
								'<td width="128" class="color-blue"><a title="',
								a[1],
								'" target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
								a[0], '.htm"><nobr>', a[1].FS(10),
								"</nobr></a></td>", '<th width="78">', a[2],
								"</th>", '<th width="80" class="', h, '">', k,
								a[3], "</th>", '<th width="88" class="', h,
								'">', k, a[4], (a[4] == "--" ? "" : "%"),
								"</th>", '<th width="78">', a[5], "</th>",
								'<th width="83">', a[6], "</th>",
								'<td width="105">', a[7], " ", a[8], "</td>",
								'<td width="116">', a[9], "</td>",
								'<td width="59">', a[10], "</td>"].join("")
					} else {
						if ("fbs".indexOf(MAP[TYPE]) >= 0) {
							h = "color-black";
							k = "", c1 = "color-black";
							t1 = "";
							if (a[3] > 0) {
								h = "color-red";
								k = "+"
							} else {
								if (a[3] < 0) {
									h = "color-green"
								}
							}
							if (a[8] > 0) {
								t1 = "+";
								c1 = "color-red"
							} else {
								if (a[8] < 0) {
									c1 = "color-green"
								}
							}
							b[b.length] = [
									'<th class="num">',
									(d + 1),
									"</th>",
									'<th width="78" class="color-blue"><a target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
									a[0],
									'.htm">',
									a[0],
									"</a></th>",
									'<td width="128" class="color-blue"><a title="',
									a[1],
									'" target="_blank" href="http://stock.finance.qq.com/fund/djj_jjcx/',
									a[0], '.htm"><nobr>', a[1].FS(10),
									"</nobr></a></td>", '<th width="78">',
									a[2], "</th>", '<th width="80" class="', h,
									'">', k, a[3], "</th>",
									'<th width="88" class="', h, '">', k, a[4],
									(a[4] == "--" ? "" : "%"), "</th>",
									'<th width="78">', a[5], "</th>",
									'<th width="98">', a[6], "</th>",
									'<th width="86">', a[7], "</th>",
									'<th width="121" class="', c1, '">',
									(a[8] ? t1 + a[8] : "--"), "</th>",
									'<td width="58">', a[9], "</td>"].join("")
						}
					}
				}
			}
			b[b.length] = "</tr>"
		}
		b[b.length] = "</table>";
		g.innerHTML = b.join("")
	}
}
function ShowTitle() {
	tabs_z("fod1", "fod1list", TYPE, "div", "div")
}
function ShowWait() {
	var a = QFL.Dom.$("data-" + TYPE);
	if (a) {
		a.innerHTML = '<div style="height:40px;text-align:center;line-height:40px;">\u52a0\u8f7d\u4e2d..</div>'
	}
}
function LoadData() {
	ShowTitle();
	if (DATE) {
		var a = TYPE;
		var b = "http://stock.finance.qq.com/cgi-bin/fund/jzzx_d?fm=js&d="
				+ DATE + "&t=" + a;
		ShowWait();
		JsLoader.load("_jz", b, function() {
					if (window["v_" + MAP[TYPE]]) {
						DATA = window["v_" + MAP[TYPE]];
						ShowData();
						window["v_" + MAP[TYPE]] = null
					}
				})
	} else {
		var b = "http://stock.finance.qq.com/fund/jzzx/" + MAP[TYPE] + ".js?"
				+ Math.random();
		ShowWait();
		JsLoader.load("_jz", b, function() {
					if (window["v_" + MAP[TYPE]]) {
						DATA = window["v_" + MAP[TYPE]];
						ShowData();
						window["v_" + MAP[TYPE]] = null
					}
				})
	}
}
function ChangeData(k) {
	k = k || window.event;
	var f = k.srcElement || k.target;
	if (f.id) {
		var c = f.id;
		if (c.match(/type-(\d+)/ig)) {
			var m = RegExp.$1;
			if (TYPE != m) {
				TYPE = m;
				var d = new UrlParser(window.location.href);
				if (TYPE == 4) {
					SORT = d.getParam("s", 3)
				} else {
					if (TYPE == 9) {
						SORT = d.getParam("s", 8)
					} else {
						var a = new Date(), h = a.getHours();
						if (h >= 16 && h <= 21) {
							SORT = d.getParam("s", 6)
						} else {
							SORT = d.getParam("s", 4)
						}
					}
				}
				ORDER = d.getParam("o", 1);
				LoadData()
			}
		} else {
			if (c.match(/sort-(\d+)/ig)) {
				var g = RegExp.$1;
				if (SORT != g) {
					SORT = g;
					ORDER = 0
				} else {
					ORDER = ORDER ? 0 : 1
				}
				ShowData()
			} else {
				if (c == "trigger-tfd") {
					Calendar.Show(1)
				} else {
					if (c == "jzzx-down") {
						var n = TYPE;
						var b = "http://stock.finance.qq.com/cgi-bin/fund/jzzx_d?t="
								+ n + "&d=" + DATE;
						window.open(b)
					} else {
						if (c == "jzzx-query") {
							DATE = $("tfd").value;
							LoadData()
						}
					}
				}
			}
		}
	}
	try {
		Suggest.out(sug, k)
	} catch (l) {
	}
}
(function() {
	var e = new UrlParser(window.location.href), a, c;
	TYPE = e.getParam("t", 0);
	if (TYPE < 0 || TYPE > MAP.length) {
		TYPE = 0
	}
	if (TYPE == 4) {
		SORT = e.getParam("s", 3)
	} else {
		if (TYPE == 9) {
			SORT = e.getParam("s", 12)
		} else {
			var b = new Date(), d = b.getHours();
			if (d >= 16 && d <= 21) {
				SORT = e.getParam("s", 6)
			} else {
				SORT = e.getParam("s", 4)
			}
		}
	}
	ORDER = e.getParam("o", 1);
	QFL.Event.on(document, "click", ChangeData);
	LoadData();
	Calendar.Create("newCal");
	Calendar.Bind($("tfd"));
	Calendar.Callback = function(f) {
		$("tfd").value = f
	}
})();/* |xGv00|063799a77cc1c556dbe5c155ca8fc350 */